package org.wangnian.corsprovider.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@CrossOrigin(origins = {"http://localhost:9091"})
public class HelloController {

    @GetMapping("hello")
    String getHello(){
        return "get hello";
    }

    @PostMapping("hello")
    String postHello(){
        return "post hello";
    }

}
